package com.atguigu.luachangeUTF8;

import java.math.BigInteger;
import java.util.Scanner;

public class test {





        public static void main(String[] args){
           Scanner sc = new Scanner(System.in);
            BigInteger n = sc.nextBigInteger();


            BigInteger  res = demo(n);





            String str = "" + res;
            System.out.println(str);
            char[] chars = str.toCharArray();
            int sum = 0;
            for(char c : chars){
                if(c == '0'){
                    sum++;
                }
            }
            System.out.println(sum);

        }
    private static BigInteger demo(BigInteger n){


        if ( n.intValue() == 1 ){
            return BigInteger.valueOf(1);

        }


      //  return n*demo(n-1);

        return BigInteger.valueOf(1);

        }



    }

